package com.java1412.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * feign的客户端的接口
 *
 * @author java1412
 * @since 2025-05-15 9:17
 */
// 当前的接口是一个feign的客户端接口，可以远程调用其他的微服务
// value的值是注册中心的名称
@FeignClient(value = "mall-goods")
public interface GoodsService {
    @GetMapping(value = "/api/v1/goods/findByGoodsId")
    public Object findByGoodsId(@RequestParam(value = "goodsId") Integer goodsId);

    @GetMapping(value = "/api/v1/goods/findClusterName")
    public String findClusterName();
}
